<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{block name="title"}{/block}</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <!--weui.min.css-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/home/jquery_weui/css/weui.min.css">
    <!--jquery-weui.min.css-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/home//jquery_weui/css/jquery-weui.min.css">
    <link rel="stylesheet" href="__STATIC__/home/css/base.css" />
    <link rel="stylesheet" href="__STATIC__/home/css/font.css" />
    <link rel="stylesheet" href="__STATIC__/home/css/fonts/iconfont.css" />
    {block name="style"}{/block}
</head>
<body>
{block name="main"}{/block}
<!--导航-->
<a href="javascript:;" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i> <i class="msg_count">0</i> </a>
<div class="index-nav">
    <a href="" class="layer"></a>
    <div class="index-nav-bd">
        <span class="triangle"></span>
        <a href="/" class="fs065">
            <i class="icon iconfont icon-home"></i><span>首页</span>
        </a>
        <a href="{:url('member/index')}" class="fs065">
            <i class="icon iconfont icon-my_light"></i><span>个人中心</span>
        </a>
        <a href="{:url('cart/index')}" class="fs065 pl">
            <i class="icon iconfont icon-cart"></i><span>购物车</span>
            <i class="shoppingCart_count">0</i>
        </a>
        <a href="{:url('rong/index')}" class="fs065 pl">
            <i class="icon iconfont icon-tongzhi"></i><span>消息</span>
            <i class="message_count">0</i>
        </a>
    </div>
</div>
<!-- jquery-2.1.4 -->
<script type="text/javascript" src="__STATIC__/home/jquery_weui/js/jquery-2.1.4.js"></script>
<!-- jquery-weui.min.js -->
<script type="text/javascript" src="__STATIC__/home/jquery_weui/js/jquery-weui.js"></script>

<script type="text/javascript" src="__STATIC__/home/jquery_weui/js/fastclick.js"></script>
<script src="__STATIC__/home/js/common.js?v={php}echo time();{/php}"></script>
<script src="__STATIC__/home/js/function.js?v={php}echo time();{/php}"></script>
{block name="javascript"}{/block}

<script>
    $(function () {
        $(function() {
            FastClick.attach(document.body);
        });

        // 获取统计数量
        $.get("{:url('base/get_count_num')}", function (msg) {
            if (msg.code == 200) {
                if (msg.data.count_num > 0) {
                    $('.msg_count').html(msg.data.count_num).show();
                }
                if (msg.data.cart_num > 0) {
                    $('.shoppingCart_count').html(msg.data.cart_num).show();
                }
                if (msg.data.message_num > 0) {
                    $('.message_count').html(msg.data.message_num).show();
                }
            }
        }, 'json');
    });
</script>
</body>
</html>

